import axios from 'axios';


const request = axios.create({
    baseURL: 'http://8.130.96.100:8913'
})


request.interceptors.request.use((config:any) => {
    const userToken = window.localStorage.getItem('token' || '')
    if (userToken) {
        config.headers.Authorization = `${userToken}`
    }
    return config
})

export default request